import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
    { path: "", name: "index", component: () => import("@/views/index.vue"),props: true,
        children: [
            { path: "/", name: "curd", component: () => import("@/views/demo/curd.vue"),}, // 同/子级数据增删改查
        ]
    }, 
   
];
const router = new VueRouter({
    mode: "history",
    routes,
});
export default router;
